package com.example.AIstudy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;

//这个类对应用户做题过程中，题目和套题的一一对应关系
@Data
@TableName("recorddetail")
@EqualsAndHashCode(callSuper = false)
public class RecordDetail implements Serializable {

    //自增的主键
    @TableId(value = "id", type = IdType.AUTO)
    @JsonProperty(value = "id")
    public Integer id;

    @TableField("recordID")
    @JsonProperty(value = "recordID")
    public Integer recordID=0;

    @TableField("exerciseID")
    @JsonProperty(value = "exerciseID")
    public Integer exerciseID;

    @TableField("stuAnswer")
    @JsonProperty(value = "stuAnswer")
    public String stuAnswer;

    //选择题正误
    @TableField("isRight")
    @JsonProperty(value = "isRight")
    public boolean isRight;

    //是否提交
    @TableField("isSubmitted")
    @JsonProperty(value = "isSubmitted")
    public boolean isSubmitted;

    //作文评语对应的id
    @TableField("compCommentID")
    @JsonProperty(value = "compCommentID")
    public Integer compCommentID=null;

    //翻译评语对应的id
    @TableField("transCommentID")
    @JsonProperty(value = "transCommentID")
    public Integer transCommentID=null;

    @TableField("stuID")
    public Integer stuID;
    //得分
    @TableField("stuScore")
    @JsonProperty(value = "stuScore")
    public int stuScore;

    @TableField("falseReason")
    public String falseReason;

    @TableField("insertTime")
    public Timestamp insertTime;

    @TableField("aiComment")
    public String aiComment;

    @TableField("sonRecordID")
    public String sonRecordID;
}
